﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using Pg.BioMedics.SDR.Services;

namespace Pg.BioMedics.SDR.Web
{
    /// <summary>
    /// Summary description for ServiceFactory. This object is utilized 
    /// by Spring .NET IoC context for services loading.
    /// </summary>
    public sealed class CommonServiceFactory
    {
        #region Factory methods

        public IManagementService CreateManagementService()
        {
            return ServiceFactory.ManagementService;
        }

        public IIndexingService CreateIndexingService()
        {
            return ServiceFactory.IndexingService;
        }

        public ISearchService CreateSearchService()
        {
            return ServiceFactory.SearchService;
        }

        #endregion
    }
}
